package com.study.thread.demo;

public class ThreadPoolDemo {

    public static void main(String[] args) throws Exception {
//        TestaThread testAThread = new TestaThread();
//        new Thread(testAThread).start();

        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 10; i++) {
                    System.out.println(i);

                    try {
                        Thread.sleep(1000L);
                    } catch (Exception e) {

                    }
                }
            }
        });

        t.start();

        t.join();

        System.out.println("end");
    }
}
